package com.maszy.servlet;

import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.maszy.service.MyRunnable;
import com.maszy.service.PrintRunnable;
import com.maszy.service.RfidRunnable;

import cr5xdll.CR5XFrame;

public class PosAutoRun extends HttpServlet{
    public void init(ServletConfig config) throws ServletException
    {
        super.init(config);
        Run();
       
	//收银机自动上传注册的执行位置
     
    }
	public void doGet(HttpServletRequest request, HttpServletResponse response) {
       
	}
	public void doPost(HttpServletRequest request, HttpServletResponse response) {
		doGet(request, response);
	}
	public static void Run(){
		CR5XFrame cf=new CR5XFrame();
		cf.InitObj();
		MyRunnable mr=new MyRunnable();  
		Thread t1=new Thread(mr);  
		t1.start();
		PrintRunnable pr=new PrintRunnable();
		Thread t2=new Thread(pr);
		t2.start();
	}
}
